/**
 * 延迟一段时间
 * @param delay
 */
export function sleep(delay = 500) {
    return new Promise((resolve) => {
        setTimeout(resolve, delay)
    })
}